package com.borya.model.entity;

public class SmsInfo{
	
	private String userId;
	/**验证码使用次数**/
	private int useNum=0;
	/*** 验证码 ***/
	private String authCode;
	/*** 消息过期时间 (绝对时间,毫秒) ***/
	private long timeoutTime;
	/*** 验证码(1:IOS 2:android 3:server) ***/
	private String requesttype;
	
	
	public String getRequesttype() {
		return requesttype;
	}

	public void setRequesttype(String requesttype) {
		this.requesttype = requesttype;
	}

	public String getAuthCode() {
		return authCode;
	}
	
	public void setAuthCode(String authCode) {
		this.authCode = authCode;
	}
	
	public long getTimeoutTime() {
		return timeoutTime;
	}
	
	public void setTimeoutTime(long timeoutTime) {
		this.timeoutTime = timeoutTime;
	}
	
	public int getUseNum() {
		return useNum;
	}

	public void setUseNum(int useNum) {
		this.useNum = useNum;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	@Override
	public String toString() {
		return "SmsInfo [useNum=" + useNum + ", authCode=" + authCode + ", timeoutTime=" + timeoutTime
				+ ", requesttype=" + requesttype + "]";
	}
    /**
     * 把实体类转换成JSON格式
     * @return
     */
    public String getBeanJson(){
        StringBuilder sb = new StringBuilder(128);
        sb.append("{\"useNum\":\""+useNum+"\"");
        sb.append(",\"userId\":\""+userId+"\"");
        sb.append(",\"authCode\":\""+authCode+"\"");
        sb.append(",\"timeoutTime\":\""+timeoutTime+"\"");
        sb.append(",\"requesttype\":\""+requesttype+"\"");
        sb.append("}");
        return sb.toString();

    }
}